<script type="text/javascript">
$(function(){
	//进入一个特定相册页面
	$("a[name=albumAInTab]").click(function(){
		var albumId = $(this).attr("albumId");
		var d = {"albumId":albumId};
		jQuery.get("/Wyn/album/showOneAlbum",d,function(data){
			$("#tabBody").parent().replaceWith(data);
		})
	});
});
</script>
<div class="main-column">
	<div id="tabBody">
		<div class="photos-tab">

			<div class="page-title clearfix">
				<a stats="album_new"
					href="http://upload.renren.com/index.do?ref=1004"
					class="imgbtn-1 flashUploader"><span>上传新照片</span></a>
			</div>
			<div class="photo-list myalbums">
				<h2>
					${Session.user.realName}的相册 <span>2个相册<span class="pipe">|</span> <a
						stats="album_all" href="/Wyn/album/goCreateAlbum" target="blank">创建新相册</a>
					</span>
				</h2>
				<div class="piclist s2 clear-both">
					<table>
						<tbody>
							<tr>
								<#list albumList as album>
								<td>
									<div class="picitem">
										<a name="albumAInTab" href="#nogo" stats="album_album" albumId="${album.id}">
											<img stats="album_album" src="http://fmn.rrimg.com/fmn057/20120205/2120/head_ctoQ_09cf000271b4125c.jpg" alt="${album.albumName}">
											${album.albumName}
										</a> 
										<span class="piccount">
											${album.pictures.size()}张照片
										</span>
									</div>
								</td>
								</#list>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>